package org.vudroid.core.events;

/**
 * Created by IntelliJ IDEA.
 * User: fabura
 * Date: 06.10.2010
 * Time: 23:09:38
 */
public interface ShiftListener
{
    void shift(int shift);

    public class ShiftEvent extends SafeEvent<ShiftListener>
    {
        private int shift;

        public ShiftEvent(int shift)
        {
            this.shift = shift;
        }

        @Override
        public void dispatchSafely(ShiftListener listener)
        {
            listener.shift(shift);
        }
    }
}
